package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Waker
 * @description:
 * @create 2025-09-12-10:20
 */
@Component
@Slf4j
public class ContractJob {
    @Autowired
    private IContractService contractService;

    /**
     * 定时更新合同状态
     */
    public void updateContractStatus(){
        contractService.updateContractStatus();
        log.info("定时更新合同状态完成！");
    }
}
